Intersection and Union Type Assignment and Polarised λ̄μμ̃
نویسندگان
چکیده
Intersection and union type assignment systems are powerful tools for reasoning programs that completely characterise many semantic properties such as strong normalisation. At the same time, they are known to be subtle, particularly in the presence of computational effect. To address the difficulty, this paper develops an approach based on polarities and refinement intersection type systems. We introduce a simply-typed polarised calculus, in which a type is either positive or negative, based on Curien and Herbelin’s calculus λ̄μμ̃. This polarised calculus interacts well with intersection and union types: by adding intersection on positive types and union on negative types, we obtain a sound and complete type system. One can design an intersection and union type system for another calculus, guided by a translation to the polarised calculus. To demonstrate usefulness of the approach, we derive the first intersection and union type system for the call-by-value λ̄μμ̃, which satisfies expected properties.
منابع مشابه
Completeness and Soundness results for X with Intersection and Union Types
This paper defines intersection and union type assignment for the sequent calculus X , a substitution-free language that enjoys the Curry-Howard correspondence with respect to Gentzen’s sequent calculus for classical logic. We show that this notion is complete (i.e. closed for subject-expansion), and show that the non-logical nature of both intersection and union types disturbs the soundness (i...
متن کاملSound and Complete Typing for λμ
In this paper we define intersection and union type assignment for Parigot’s calculus λμ. We show that this notion is complete (i.e. closed under subject-expansion), and show also that it is sound (i.e. closed under subject-reduction). This implies that this notion of intersection-union type assignment is suitable to define a semantics.
متن کاملSound and Complete Typing for lambda-mu
In this paper we define intersection and union type assignment for Parigot's calculus λµ. We show that this notion is complete (i.e. closed under subject-expansion), and show also that it is sound (i.e. closed under subject-reduction). This implies that this notion of intersection-union type assignment is suitable to define a semantics.
متن کاملCompleteness and Soundness Results for with Intersection and Union Types
With the eye on defining a type-based semantics, this paper defines intersection and union type assignment for the sequent calculus X , a substitution-free language that enjoys the Curry-Howard correspondence with respect to the implicative fragment of Gentzen’s sequent calculus for classical logic. We investigate the minimal requirements for such a system to be complete (i.e. closed under rede...
متن کاملIntersection and Union Types for X
This paper presents a notion of intersection and union type assignment for the calculus X , a substitution free language that can be used to describe the behaviour of functional programming languages at a very low level of granularity, and has first been defined in [14,5]. X has been designed to give a Curry-Howard-de Bruijn correspondence to the sequent calculus for classical logic. In this pa...
متن کامل